package com.cssnj.portal.domain.manage;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * 厂商
 *
 * @author Arthur
 * @version 1.0
 * @since 2018/9/11 22:02
 */
@Entity
@Table(name = "GL_FWCS")
public class GlFwcsEntity {
    private String fwcsId;
    private String fwcsMc;
    private String ztbjDm;
    private String lrryId;
    private String xgryId;
    private Timestamp lrSj;
    private Timestamp xgSj;
    private Timestamp zxSj;
    private String zxryId;

    @Id
    @Column(name = "FWCS_ID")
    public String getFwcsId() {
        return fwcsId;
    }

    public void setFwcsId(String fwcsId) {
        this.fwcsId = fwcsId;
    }

    @Basic
    @Column(name = "FWCS_MC")
    public String getFwcsMc() {
        return fwcsMc;
    }

    public void setFwcsMc(String fwcsMc) {
        this.fwcsMc = fwcsMc;
    }

    @Basic
    @Column(name = "ZTBJ_DM")
    public String getZtbjDm() {
        return ztbjDm;
    }

    public void setZtbjDm(String ztbjDm) {
        this.ztbjDm = ztbjDm;
    }

    @Basic
    @Column(name = "LRRY_ID")
    public String getLrryId() {
        return lrryId;
    }

    public void setLrryId(String lrryId) {
        this.lrryId = lrryId;
    }

    @Basic
    @Column(name = "XGRY_ID")
    public String getXgryId() {
        return xgryId;
    }

    public void setXgryId(String xgryId) {
        this.xgryId = xgryId;
    }

    @Basic
    @Column(name = "LR_SJ")
    public Timestamp getLrSj() {
        return lrSj;
    }

    public void setLrSj(Timestamp lrSj) {
        this.lrSj = lrSj;
    }

    @Basic
    @Column(name = "XG_SJ")
    public Timestamp getXgSj() {
        return xgSj;
    }

    public void setXgSj(Timestamp xgSj) {
        this.xgSj = xgSj;
    }

    @Basic
    @Column(name = "ZX_SJ")
    public Timestamp getZxSj() {
        return zxSj;
    }

    public void setZxSj(Timestamp zxSj) {
        this.zxSj = zxSj;
    }

    @Basic
    @Column(name = "ZXRY_ID")
    public String getZxryId() {
        return zxryId;
    }

    public void setZxryId(String zxryId) {
        this.zxryId = zxryId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GlFwcsEntity that = (GlFwcsEntity) o;
        return Objects.equals(fwcsId, that.fwcsId) &&
                Objects.equals(fwcsMc, that.fwcsMc) &&
                Objects.equals(ztbjDm, that.ztbjDm) &&
                Objects.equals(lrryId, that.lrryId) &&
                Objects.equals(xgryId, that.xgryId) &&
                Objects.equals(lrSj, that.lrSj) &&
                Objects.equals(xgSj, that.xgSj) &&
                Objects.equals(zxSj, that.zxSj) &&
                Objects.equals(zxryId, that.zxryId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(fwcsId, fwcsMc, ztbjDm, lrryId, xgryId, lrSj, xgSj, zxSj, zxryId);
    }
}
